package com.scorpio.agentuser.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
public class AgentUserDTO {
    private Long id;

    //上级代理商ID
    private Long pid;

    //帐号
    private String username;

    //代理商公司或姓名
    private String agentName;

    //电话手机
    private String phone;

    //所在省份ID
    private Long provinceId;

    private String provinceName;

    //所在城市ID
    private Long cityId;

    private String cityName;

    //所在区
    private Long districtId;

    //所在区
    private String districtName;

    //详细地址
    private String address;

    //直推比例 100=100%
    private Float directScale;

    //间推比例 100=100%
    private Float indirectScale;

    //等级划分 1=合伙人,2=省级代理,3=市级代理,4=业务员
    private Integer agentLevel;

    //邀请码
    private String inviteCode;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    //直推人数
    private int directTotali;

    //间推人数
    private int indirectTotali;
}
